﻿using System;
namespace 转发程序.TCPServer
{
    interface IAsyncTcpServer
    {
        void CloseSocket(global::ControlCenter.通讯.TcpServerSocket socket);
        void Dispose();
        event EventHandler<global::ControlCenter.通讯.TcpServerEventArgs> OnAcceptSocket;
        event EventHandler<global::ControlCenter.通讯.TcpServerEventArgs> OnClientDisconnected;
        event EventHandler<global::ControlCenter.通讯.TcpServerEventArgs> OnReceiveData;
        event EventHandler<global::ControlCenter.通讯.TcpServerEventArgs> OnSendData;
        int SendDataByID(string RouteID, byte[] Data);
        int SendDataByUser(ulong UserID, byte[] Data);
        global::System.Net.IPEndPoint ServerIPEndPoint { get; }
        void Start();
        bool Stop();
    }
}
